package my.mall.admin.api.pojo.login

import jakarta.validation.constraints.Max
import jakarta.validation.constraints.Min
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import org.hibernate.validator.constraints.Length
import kotlin.properties.Delegates

class LoginParam {
    var phoneNum: @NotNull(message = "请输入正确电话号码") @Min(
        value = 10000000000L,
        message = "请输入正确电话号码"
    ) @Max(value = 19999999999L, message = "请输入正确电话号码") Long by Delegates.notNull()

    lateinit var password: @NotBlank(message = "密码格式错误") @Length(min = 4, max = 16) String
}
